[.config_load file="../../config/emmm.conf".]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[.$emmm_adminfont.admintitle.]</title>
<link href="templates/images/emmm_login.css" rel="stylesheet" type="text/css"> 
[.#jq172#.]
<script charset="utf-8" src="templates/images/emmm.js"></script>
</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li onclick="setTab(0,0)" class="hover">信息列表</li>
  <li onclick="setTab(0,1)">添加信息</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>
		<div class="emmm_newslist">
		        <form id="form2" name="form2" method="post" action="?emmm_cms=Batch">
		        <table width="100%" border="0" cellpadding="10" class="emmm_newslist">
                  <tr>
				 	<td width="5%" bgcolor="#EBEBEB"><div align="center">批量?</div></td>
				  	<td width="5%" bgcolor="#EBEBEB"><div align="center">ID</div></td>
                    <td width="47%" bgcolor="#EBEBEB">标题</td>
                    <td width="20%" bgcolor="#EBEBEB">属性</td>
                    <td width="15%" bgcolor="#EBEBEB">发布时间</td>
                    <td width="8%" bgcolor="#EBEBEB">操作</td>
                  </tr>
				  [.section loop=$article name=op.]
                  <tr>
				 	 <td><div align="center"><input type="checkbox" name="op_b[]" value="[.$article[op].id.]" />
				 	 </div></td>
				  	<td><div align="center"><font style="background:#009933; color:#FFFFFF; padding:2px; text-align:center;">[.$article[op].id.]</font></div></td>
                    <td>
					<font style="background: #FF9900; color:#FFFFFF; padding:2px; text-align:center;">[.$article[op].lang.]</font>
					<font style="background: #0099CC; color:#FFFFFF; padding:2px; text-align:center;">[.$article[op].class.]</font>
					&nbsp;&nbsp;[.$article[op].title.]
					</td>
                    <td>[.$article[op].att.]</td>
                    <td>[.$article[op].time.]</td>
                    <td><a href="emmm_articleview.php?id=[.$article[op].id.]&page=[.$page.]">编辑</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="?emmm_cms=del&id=[.$article[op].id.]" onclick="javascript:return confirm('确认删除吗?')">删除</a></td>
                  </tr>
				  [.sectionelse.]
				  <tr>
                    <td colspan="6">[.$emmm_access.]</td>
                  </tr>
				  [./section.]
				  <tr>
				  	<td><div align="center"><input onclick="selectAll()" type="checkbox" name="controlAll" style="controlAll" id="controlAll"/></div></td>
					<td colspan="5"></td>
				  </tr>
				  <tr>
                    <td colspan="6" bgcolor="#ebebeb">快捷操作:</td>
                  </tr>
				  <tr>
                    <td colspan="6">
					<input type="checkbox" name="COL_Articleattribute[]" value="0" />&nbsp;头条&nbsp;&nbsp;
					<input type="checkbox" name="COL_Articleattribute[]" value="1" />&nbsp;热门&nbsp;&nbsp;
					<input type="checkbox" name="COL_Articleattribute[]" value="2" />&nbsp;滚动&nbsp;&nbsp;
					<input type="checkbox" name="COL_Articleattribute[]" value="3" />&nbsp;推荐&nbsp;&nbsp;[&nbsp;&nbsp;
					<input type="radio" name="h" value="h" />&nbsp;回收站&nbsp;&nbsp;
					<input type="radio" name="h" value="y" />&nbsp;移动&nbsp;&nbsp;
					<input type="radio" name="h" value="s" />&nbsp;删除&nbsp;&nbsp;
					<input type="radio" name="h" value="w" checked="checked" />
					&nbsp;无&nbsp;&nbsp;]&nbsp;&nbsp;
					<input type="submit" name="Submit" value="批量提交" class="emmm_listan" />
					</td>
                  </tr>
                  <tr>
                    <td colspan="6">[.$emmmpage.]</td>
                  </tr>
                </table>
                </form>
        </div>
	  </li>
  </ul>
  
  <ul>
	  <li>
		<form id="form1" name="form1" method="POST" action="?emmm_cms=add" class="registerform">
		<table width="98%" border="0" cellpadding="5" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse; margin-top:20px;" align="center">
		<tr>
		  	<td><div align="right">栏目</div></td>
			<td>
			

<select name="COL_Articleclass" datatype="zoo">
	<option value="0" >请选择</option>
	[.function name=menu.]
			[.foreach $data as $op.]
				<option value="[.$op.id.]|[.$op.lang.]" [.if $op.model != 'article'.]disabled="true" style="color:#FF0000;"[.else.] style="color:#009900"[./if.]>
				[.if $op.uid != 0.]
					[.for $foo=1 to $level.]
					&nbsp;&nbsp;
					[./for.]
					└
				[./if.]
				[.$op.title.]
				</option>
				
				[.if isset($op.child).]
					[.call name=menu data=$op.child level=$level+1.]
				[./if.]
			[./foreach.]
	[./function.]
	[.call name=menu data=$articlelist.]
</select>
			<font color="#009900">绿色</font>表示可录入项，<font color="#FF0000">红色</font>禁止录入项.
			
			
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">标题</div></td>
			<td><input name="COL_Articletitle" type="text" class="win" [.$emmm_bgcolor.] datatype="*" nullmsg="标题是必填项!"/><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">作者</div></td>
			<td><input name="COL_Articleauthor" type="text" class="win" [.$emmm_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">来源</div></td>
			<td><input name="COL_Articlesource" type="text" id="yidacms_adpic1" class="win" [.$emmm_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td valign="top"><div align="right">正文</div></td>
			<td>
			<p><input name="a_upimg" type="text" id="a_upimg" class="win"  />&nbsp;
			<input type="button" id="image3" value="上传缩略图" style="width:100px; height:25px; line-height:25px; background:#0099CC; color:#FFFFFF; border:0px;" /></p>
			<p>&nbsp;</p>
			<p><input type="checkbox" name="tu" value="1" /> 提取内容中第一张图片做为缩略图</p>
			<p>&nbsp;</p>
			<textarea name="COL_Articlecontent" class="wtextarea" id="container" style="width:80%; height:200px;"></textarea><font color=red> (*)</font>
			[.include file="emmm_editor.html".]
			<script>
				KindEditor.ready(function(K) {
					var editor = K.editor({
						allowFileManager : true
					});
					K('#image3').click(function() {
						editor.loadPlugin('image', function() {
							editor.plugin.imageDialog({
								showRemote : false,
								imageUrl : K('#a_upimg').val(),
								clickFn : function(url, title, width, height, border, align) {
									K('#a_upimg').val(url);
									editor.hideDialog();
								}
							});
						});
					});
				});
			</script>
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">排序</div></td>
			<td><input name="COL_Articlesorting" type="text" class="win2" value="99" [.$emmm_bgcolor.] datatype="*" nullmsg="排序是必填项!"/> 数字越小越靠前！</td>
		  </tr>
		  <tr>
		  	<td><div align="right">属性</div></td>
			<td>
				<input type="checkbox" name="COL_Articleattribute[]" value="0" />&nbsp;头条&nbsp;&nbsp;
				<input type="checkbox" name="COL_Articleattribute[]" value="1" />&nbsp;热门&nbsp;&nbsp;
				<input type="checkbox" name="COL_Articleattribute[]" value="2" />&nbsp;滚动&nbsp;&nbsp;
				<input type="checkbox" name="COL_Articleattribute[]" value="3" />&nbsp;推荐&nbsp;&nbsp;
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">跳转</div></td>
			<td><input name="COL_Articleurl" type="text" class="win" [.$emmm_bgcolor.] /> 如果为空，则不跳转！</td>
		  </tr>
		  <tr>
			<td></td>
		  	<td><strong>--------------- SEO设置 ---------------</strong></td>
		  </tr>
		  <tr>
		  	<td><div align="right">关键词</div></td>
			<td><input name="COL_Articletag" type="text" class="win" [.$emmm_bgcolor.] />&nbsp;请用英文中的 , 格开</td>
		  </tr>
		  <tr>
		  	<td><div align="right">描述</div></td>
			<td><textarea name="COL_Articledescription" class="wtextarea" ></textarea> 如果为空，自动截取正文前200个字</td>
		  </tr>
		   <tr>
		   	<td></td>
			<td><input type="submit" name="submit" value="提 交" class="emmm-anniu"/></td>
		  </tr>
		   <tr>
		   	<td>&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
		</table>
		</form>
	  </li>
  </ul>
 </div>
</div>
[.include file="emmm_foot.html".]
</body>
</html>
